package com.zcx.qshop.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.View;

import com.zcx.qshop.QSApplication;
import com.zcx.qshop.R;

/**
 * Created by Administrator on 2015/9/4 0004.
 */
public class CommodityDetailStartView extends StartView {

    public CommodityDetailStartView(Context context, AttributeSet attrs) {

        super(context, attrs);

    }

    @Override
    protected boolean isClick() {

        return false;

    }

    @Override
    protected int max() {

        return 5;

    }

    @Override
    protected int selectYes() {

        return R.mipmap.commodity_detail_start_select;

    }

    @Override
    protected int selectNo() {

        return R.mipmap.commodity_detail_start;

    }

    @Override
    protected View getView(View view) {

        LayoutParams layoutParams = new LayoutParams(QSApplication.ScaleScreenHelper.getWidthHeight(32), QSApplication.ScaleScreenHelper.getWidthHeight(30));

        layoutParams.rightMargin = QSApplication.ScaleScreenHelper.getWidthHeight(11);

        view.setLayoutParams(layoutParams);

        return view;

    }

}
